<%@ page language="java" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/struts-tiles" prefix="tiles" %>
<%@ taglib uri="/tags/faare" prefix="fa" %>

<HTML>
    <HEAD>
        <TITLE>Application menu and body</TITLE>
        <LINK rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/standard.css" />
    </HEAD>
    <BODY style="margin: 0; overflow: auto;" class="body_background">
        <!-- #### Horizontal Menu #### -->
        <tiles:get name="horizontalMenu"/>

		<TABLE cellpadding="0" cellspacing="20" border="0" align="center" width="100%" summary="Body" class="body">
            <TR><TD valign="top" height="450">
                    <TABLE cellpadding="0" cellspacing="0" border="0" align="center" width="100%" summary="Body" class="body">
                        <TR><TD width="100%">
                                <TABLE cellpadding="0" cellspacing="0" border="0" summary="bottom" align="center">
                                    <TR><TD><IMG src="<%=request.getContextPath()%>/images/top_left_selected.gif" width="6" height="6" alt=""></TD>
                                        <TD class="background" width="100%"><IMG src="<%=request.getContextPath()%>/images/spacer.gif" width="100" height="1" alt=""></TD>
                                        <TD><IMG src="<%=request.getContextPath()%>/images/top_right_selected.gif" width="6" height="6" alt=""></TD>
                                    </TR>
                                </TABLE>
                            </TD>
                        </TR>
                        <TR><TD class="background">
                                <DIV style="margin-left: 15;">
                                    <DIV class="white_title" style="margin-top: 10;">Graphic&nbsp;Orgchart</DIV>
                                    <DIV><IMG src="<%=request.getContextPath()%>/images/spacer.gif" width="1" height="15" alt=""></DIV>
                                    <CENTER>
                                        <TABLE cellpadding="0" cellspacing="0" border="0" summary="Graphic orgchart types" align="center" class="body">
										  <TR><TD>
											 <bean:define id="orgmap" name="orgmap" scope="session" type="java.lang.String" />
										     <IMG src="GraphicOrgChart?type=jpg" border="0" usemap="#orgchart">
											 <% out.println(orgmap); %>
                                          </TD></TR>
                                        </TABLE>
                                    </CENTER>
                                    <BR/>
                                </DIV>
                            </TD>
                        </TR>
                        <TR><TD><TABLE cellpadding="0" cellspacing="0" border="0" summary="bottom" align="center">
                                    <TR><TD><IMG src="<%=request.getContextPath()%>/images/bottom_left_selected.gif" width="6" height="6" alt=""></TD>
                                        <TD class="background" width="100%"><IMG src="<%=request.getContextPath()%>/images/spacer.gif" width="100" height="1" alt=""></TD>
                                        <TD><IMG src="<%=request.getContextPath()%>/images/bottom_right_selected.gif" width="6" height="6" alt=""></TD>
                                    </TR>
                                </TABLE>
                            </TD>
                        </TR>
                    </TABLE>
                </TD>
                <TD valign="top" width="200">
                    <BR/>
                   <FIELDSET id="formulaire" style="width: 80%; border-color: blue; border-style: outset">
        		      <LEGEND>&nbsp;Choose option&nbsp;</LEGEND>
                      <TABLE cellpadding="0" cellspacing="0" width="100%" border="0" summary="Top menu icons" class="body">
                            <TR>
                               <TD><IMG src="<%=request.getContextPath()%>/images/spacer.gif" width="24" height="1" alt="" border="0"></TD>
                               <TD align="left">
                                  <A href="PdfOrgChart?viewName=<bean:write name='viewName' scope='request'/>&levelStr=<bean:write name='levelStr' scope='request'/>&direction=<bean:write name='direction' scope='request'/>&mode=1&dn=<bean:write name='currentEntry' property='dn' />" ><NOBR>Export&nbsp;to&nbsp;PDF</NOBR></A>
                               </TD>
                               <TD><IMG src="<%=request.getContextPath()%>/images/spacer.gif" width="24" height="1" alt="" border="0"></TD>
                            </TR>
                            <TR>
                               <TD><IMG src="<%=request.getContextPath()%>/images/spacer.gif" width="24" height="5" alt="" border="0"></TD>
                            </TR>
                            <TR>
                               <TD><IMG src="<%=request.getContextPath()%>/images/spacer.gif" width="24" height="1" alt="" border="0"></TD>
                               <TD align="left">
                                  <A href="<%=request.getContextPath()%>/showGraphicOrgChartType.do" target="_self"><NOBR>Change&nbsp;graphic&nbsp;OrgChart</NOBR></A>                               </TD>
                               <TD><IMG src="<%=request.getContextPath()%>/images/spacer.gif" width="24" height="1" alt="" border="0"></TD>
                            </TR>
                            <TR>
                               <TD><IMG src="<%=request.getContextPath()%>/images/spacer.gif" width="24" height="5" alt="" border="0"></TD>
                            </TR>
                      </TABLE>
                   </FIELDSET>
                </TD>
            </TR>
        </TABLE>
    </BODY>
</HTML>
